package com.ruoyi.hr.service.impl.bginfo;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.mapper.bginfo.BgInfoMapper;
import com.ruoyi.hr.service.bginfo.BgInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class BgInfoServiceImpl implements BgInfoService {

    @Autowired
    BgInfoMapper bgInfoMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public Map<String, Object> getEmpInfo(String eid) {
        return bgInfoMapper.getEmpInfo(eid);
    }
}
